#!/bin/bash
# sed 的模式空间
# sed 'N;s/\n/:/g' ./99.txt

# sed -p 打印选项
n=`wc -l ./99.txt | awk '{print $1}'`
i=1
while [ $i -lt $n ]
do
    j=$[$i+1]
    l1=`sed -n "$i"p ./99.txt`
    l2=`sed -n "$j"p ./99.txt`
    echo "$l1:$l2"
    i=$[$i+2]
done